#pragma once
#include <Windows.h>
#include <GL/GL.h>

//+==================================================================+
union Color
{
	DWORD		RGBA;
	struct{	BYTE R,G,B,A;	};
//+------------------------------------------------------------------+
	Color(){};
	Color(DWORD rgba):RGBA(rgba){};
	Color(BYTE r, BYTE g, BYTE b, BYTE a = 255)
	:	R(r),G(g),B(b),A(a){};
	operator const BYTE*(){	return &R;	};
	void glApply() const  { glColor4ubv(&R);	};
};



//+------------------------------------------------------------------+
extern const Color	black,
							white;
